package cz.kfad.ofrss.activity;


import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import cz.kfad.ofrss.common.ApplicationContext;
import cz.kfad.ofrss.common.SimpleWebView;

public class WebViewActivity extends Activity {

    public static final String URL = "URL";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
		WebView webview = new SimpleWebView(this);

		final String url = getIntent().getStringExtra(URL);
		webview.loadUrl(url);

        setContentView(webview);

    }

	@Override
	protected void onResume() {
		super.onResume();
		ApplicationContext appState = ((ApplicationContext) getApplicationContext());
		appState.setContextToAsynTasks(this);
	}
}
